//
//  FIYYBaseEntity.h
//  Magpie
//
//  Created by 100TV protocal on 12-11-15.
//
//

#import <Foundation/Foundation.h>

@protocol FIEntity
-(void) setAttribute:(id) aobj forKey:(id) akey;
-(id) attributeForKey:(id) akey;
@end

static NSString* const KEY_RESULT;
static NSString* const VALUE_RESULT_SUCCESS;

@interface FIYYBaseEntity : NSObject<FIEntity> {
@private
    NSMutableDictionary * attributeDic;
}
-(BOOL) hasError;
@end

/*
 拼出图片完整网址
 */
extern NSString* imageUrl(NSString* host, NSString* path);